var Mock = require('mockjs');

exports.response = function(req, res) {
  return Mock.mock({
    result: 0,
    data: {
      'execSummary': {
        'duration': '30 s',
        'recordCount': 5000,
        'durationAvg': '30 s',
        'recordCountAvg': 5000
      },
      'errorDetail': 'ora-00942 表或视图不存在',
      'ETLCheckResult': [
        {
          'srcSQL': 'select * from',
          'srcCount': 4135,
          'targetSQL': 'select * from',
          'targetCount': 2650
        },
      ],
      'calcCheckResult': [
        {
          'expectValue': 10,
          'actualValue': 8,
          'diffReason': 'file1,file2'
        },
      ],
      'handleRecord': [
        {
          'time': '2018-02-02 16:00:00',
          'person': '袁方',
          'content': '重新同步数据',
          'result': '数据量一致'
        },
      ]
    }
  })
}
